package routers

import (
	"OPS_TEMPLATE/controllers"
	"OPS_TEMPLATE/controllers/menu"
	"OPS_TEMPLATE/controllers/user"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.MainController{}, "get:Login")
	beego.Router("/logout", &controllers.MainController{}, "post:Logout")
	beego.Include(&controllers_menu.MenuController{})
	beego.Include(&controllers_menu.TableController{})
	beego.Include(&controllers_user.UserController{})
}
